package com.example.bbs.dao;


import com.example.bbs.model.Post;

import java.util.List;

/**
 * @auther: zhangxin
 * @Description:
 */
public interface PostDao {

    public List<Post> getPostByBlockId(int blockId);

    public boolean addPost(Post post);

    public boolean updateReplyNumber(int postId,int replyNumber);

    public List<Post> getPostByUserId(int userId);

    public boolean deletePostByPostId(int postId);

    public boolean updatePost(Post post);

    public Post findPostById(int postId);
}
